- name: Quarantine E2E tests in Master that fail consistently
  plugin:
    name: gitlab # https://gitlab.com/gitlab-org/quality/confiner/-/blob/main/doc/plugins/gitlab.md
    args:
      threshold: 3 # 3 failures
      private_token: $QA_GITLAB_CI_TOKEN
      project_id: gitlab-org/gitlab
      target_project: gitlab-org/gitlab
      failure_issue_labels: QA,Quality
      failure_issue_prefix: "Failure in "
      pwd: qa # E2E specs reside in the qa subdirectory
      timeout: 30
      ref: master
  actions:
    - quarantine
